package yx.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsStudent entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_student", catalog = "")
public class BsStudent implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer version;
	private String studentNo;
	private String studentName;
	private String gender;
	private String title;
	private Integer corporationId;
	private String position;
	private String mobile;
	private String email;
	private String qq;
	private String phone;
	private String fax;
	private String identityType;
	private String identityNo;
	private String identityName;
	private String birthday;
	private String birthplace;
	private String bloodType;
	private String nation;
	private String politicalStatus;
	private String homeAddress;
	private String postcode;
	private String deleteFlag;
	private Integer optId;
	private Timestamp optTime;

	// Constructors

	/** default constructor */
	public BsStudent() {
	}

	/** full constructor */
	public BsStudent(String studentNo, String studentName, String gender, String title, Integer corporationId, String position, String mobile, String email, String qq, String phone, String fax, String identityType, String identityNo, String identityName, String birthday, String birthplace, String bloodType, String nation, String politicalStatus, String homeAddress, String postcode, String deleteFlag, Integer optId, Timestamp optTime) {
		this.studentNo = studentNo;
		this.studentName = studentName;
		this.gender = gender;
		this.title = title;
		this.corporationId = corporationId;
		this.position = position;
		this.mobile = mobile;
		this.email = email;
		this.qq = qq;
		this.phone = phone;
		this.fax = fax;
		this.identityType = identityType;
		this.identityNo = identityNo;
		this.identityName = identityName;
		this.birthday = birthday;
		this.birthplace = birthplace;
		this.bloodType = bloodType;
		this.nation = nation;
		this.politicalStatus = politicalStatus;
		this.homeAddress = homeAddress;
		this.postcode = postcode;
		this.deleteFlag = deleteFlag;
		this.optId = optId;
		this.optTime = optTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Version
	@Column(name = "VERSION")
	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "STUDENT_NO", length = 32)
	public String getStudentNo() {
		return this.studentNo;
	}

	public void setStudentNo(String studentNo) {
		this.studentNo = studentNo;
	}

	@Column(name = "STUDENT_NAME", length = 32)
	public String getStudentName() {
		return this.studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	@Column(name = "GENDER", length = 2)
	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Column(name = "TITLE", length = 64)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "CORPORATION_ID")
	public Integer getCorporationId() {
		return this.corporationId;
	}

	public void setCorporationId(Integer corporationId) {
		this.corporationId = corporationId;
	}

	@Column(name = "POSITION", length = 32)
	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	@Column(name = "MOBILE", length = 32)
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "EMAIL")
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "QQ", length = 32)
	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	@Column(name = "PHONE", length = 32)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "FAX", length = 32)
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "IDENTITY_TYPE", length = 2)
	public String getIdentityType() {
		return this.identityType;
	}

	public void setIdentityType(String identityType) {
		this.identityType = identityType;
	}

	@Column(name = "IDENTITY_NO", length = 32)
	public String getIdentityNo() {
		return this.identityNo;
	}

	public void setIdentityNo(String identityNo) {
		this.identityNo = identityNo;
	}

	@Column(name = "IDENTITY_NAME", length = 32)
	public String getIdentityName() {
		return this.identityName;
	}

	public void setIdentityName(String identityName) {
		this.identityName = identityName;
	}

	@Column(name = "BIRTHDAY", length = 32)
	public String getBirthday() {
		return this.birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	@Column(name = "BIRTHPLACE")
	public String getBirthplace() {
		return this.birthplace;
	}

	public void setBirthplace(String birthplace) {
		this.birthplace = birthplace;
	}

	@Column(name = "BLOOD_TYPE", length = 2)
	public String getBloodType() {
		return this.bloodType;
	}

	public void setBloodType(String bloodType) {
		this.bloodType = bloodType;
	}

	@Column(name = "NATION", length = 32)
	public String getNation() {
		return this.nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

	@Column(name = "POLITICAL_STATUS", length = 2)
	public String getPoliticalStatus() {
		return this.politicalStatus;
	}

	public void setPoliticalStatus(String politicalStatus) {
		this.politicalStatus = politicalStatus;
	}

	@Column(name = "HOME_ADDRESS")
	public String getHomeAddress() {
		return this.homeAddress;
	}

	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}

	@Column(name = "POSTCODE", length = 6)
	public String getPostcode() {
		return this.postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	@Column(name = "DELETE_FLAG", length = 1)
	public String getDeleteFlag() {
		return this.deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Column(name = "OPT_ID")
	public Integer getOptId() {
		return this.optId;
	}

	public void setOptId(Integer optId) {
		this.optId = optId;
	}

	@Column(name = "OPT_TIME", length = 19)
	public Timestamp getOptTime() {
		return this.optTime;
	}

	public void setOptTime(Timestamp optTime) {
		this.optTime = optTime;
	}

}